package com.jiukuaidao.zhulin.api;

import com.jiukuaidao.library.net.ApiBaseParamAbstract;
import com.jiukuaidao.library.net.MyRetroCallBack;
import com.jiukuaidao.library.net.RootResult;
import com.jiukuaidao.zhulin.entity.ApiShoppingCartInfo;
import com.jiukuaidao.zhulin.module.shoppingcart.AddGoodsParamsInfo;
import com.jiukuaidao.zhulin.util.NetUtil;
import com.jiukuaidao.zhulin.util.RetrofitUtil;

import retrofit2.Call;

/**
 * Author : BinarySatan
 * Date : 2016/6/7
 * Description : 购物车数据 (结算数据)
 */
public class ApiShoppingCart extends ApiBaseParamAbstract {
    public AddGoodsParamsInfo mParamsInfo;
    public ApiShoppingCart(AddGoodsParamsInfo paramsInfo, MyRetroCallBack myRetroCallBack) {
        super(myRetroCallBack);
        mParamsInfo =paramsInfo;
    }

    @Override
    public Call<RootResult<ApiShoppingCartInfo>> getCall() {
        return RetrofitUtil.getApiManager(mParams, NetUtil.getResHeaderListener()).getShoppingCart(mParamsInfo);
    }
}
